package com.example.su_shi_tan_mine.child

import android.os.Bundle
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import androidx.appcompat.widget.Toolbar
import com.alibaba.android.arouter.facade.annotation.Route
import com.example.su_shi_tan_bas_lib.base.BaseFragmentEx
import com.example.su_shi_tan_bas_lib.global.Latte
import com.example.su_shi_tan_mine.R
import com.example.su_shi_tan_mine.arouter.SubPageARouter

@Route(path = SubPageARouter.AboutUs)
class AboutUsFragment : BaseFragmentEx() {
    override fun getLayoutId(): Any {
        return R.layout.about_us_fragment
    }

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        val upDataVersion: TextView = view.findViewById(R.id.upDataVersion)
        upDataVersion.setOnClickListener {
            requestData()
        }

        val app_loge: ImageView =view.findViewById(R.id.app_loge)
        app_loge.setImageResource(R.mipmap.app_icon)

        val versionName: TextView = view.findViewById(R.id.versionName)
        versionName.text = Latte.getAppVersion()

        val mToolbar: Toolbar = view.findViewById(R.id.mToolbar)
        mToolbar.title = "关于我们"
        mToolbar.setNavigationOnClickListener { onBackPressedSupport() }


    }

    private fun requestData() {

    }
}